package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysThesauriWordMapper;
import com.ruoyi.system.domain.SysThesauriWord;
import com.ruoyi.system.service.ISysThesauriWordService;

/**
 * 叙词表数据加工Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-08-24
 */
@Service
public class SysThesauriWordServiceImpl implements ISysThesauriWordService 
{
    @Autowired
    private SysThesauriWordMapper sysThesauriWordMapper;

    /**
     * 查询叙词表数据加工
     * 
     * @param id 叙词表数据加工主键
     * @return 叙词表数据加工
     */
    @Override
    public SysThesauriWord selectSysThesauriWordById(Long id)
    {
        return sysThesauriWordMapper.selectSysThesauriWordById(id);
    }

    /**
     * 查询叙词表数据加工列表
     * 
     * @param sysThesauriWord 叙词表数据加工
     * @return 叙词表数据加工
     */
    @Override
    public List<SysThesauriWord> selectSysThesauriWordList(SysThesauriWord sysThesauriWord)
    {
        return sysThesauriWordMapper.selectSysThesauriWordList(sysThesauriWord);
    }

    /**
     * 新增叙词表数据加工
     * 
     * @param sysThesauriWord 叙词表数据加工
     * @return 结果
     */
    @Override
    public int insertSysThesauriWord(SysThesauriWord sysThesauriWord)
    {
        return sysThesauriWordMapper.insertSysThesauriWord(sysThesauriWord);
    }

    /**
     * 修改叙词表数据加工
     * 
     * @param sysThesauriWord 叙词表数据加工
     * @return 结果
     */
    @Override
    public int updateSysThesauriWord(SysThesauriWord sysThesauriWord)
    {
        return sysThesauriWordMapper.updateSysThesauriWord(sysThesauriWord);
    }

    /**
     * 批量删除叙词表数据加工
     * 
     * @param ids 需要删除的叙词表数据加工主键
     * @return 结果
     */
    @Override
    public int deleteSysThesauriWordByIds(Long[] ids)
    {
        return sysThesauriWordMapper.deleteSysThesauriWordByIds(ids);
    }

    /**
     * 删除叙词表数据加工信息
     * 
     * @param id 叙词表数据加工主键
     * @return 结果
     */
    @Override
    public int deleteSysThesauriWordById(Long id)
    {
        return sysThesauriWordMapper.deleteSysThesauriWordById(id);
    }
}
